//
//  SectionHeaderView.swift
//  swiftStudy
//
//  Created by Zhang on 2021/3/16.
//

import SwiftUI

struct SectionHeaderView: View {
    var title:String
    var isNeedTab:Bool = true//是否缩进
    
    
    var body: some View {
        Text(isNeedTab ? "    "+title : title)
            .padding(10)
            .foregroundColor(.accentColor)
            .font(.title2)
    }
}
